﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VSA.CommonLibrary
{
    public class CommonFunction
    {
        public static int GetNumberOfPage(int numberOfItems, int numberOfItemsPerPage)
        {
            if (numberOfItems % numberOfItemsPerPage == 0)
            {
                return numberOfItems / numberOfItemsPerPage;
            }
            else
            {
                return (numberOfItems / numberOfItemsPerPage) + 1;
            }
        }
    }
}
